home *** CD-ROM | disk | FTP | other *** search
/ Clickx 31 / Clickx 31.iso / assets / software / MyServer-win32-0.8.2.exe / web / documentation / texts / errorfiles.htm < prev    next >
Encoding:
Extensible Markup Language  |  2005-09-29  |  2.8 KB  |  58 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  5. <head>
  6. <title>MyServer Documentation - Error Handling - www.myserverproject.net</title>
  7. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  8. <meta http-equiv="Content-Style-Type" content="text/css" />
  9. <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
  10. </head>
  11. <body>
  12. <table class="center" width="95%">
  13. <tr>
  14. <td class="center">
  15. <h1 class="title">ERROR PAGES</h1>
  16. <br />
  17. You can modify the html pages that are sent when an error occurs.<br />
  18. <br />
  19. The default files are contained in the <span class="code">system</span> directory used
  20.  by the host and can be replaced with your own files. 
  21. Different <a href="virtualhosts.html">Virtual Hosts</a> can use different error 
  22. files.<br />
  23. <br />
  24. The pages must not contain any references to other documents in the system directory.
  25. <br />
  26. Every request to <span class="code"/sys></span> will be mapped to the system directory. So a request to <a href="http://sys/file.html"http://sys/file.html></a> will send the file <span class="code">file.html</span> contained in the <span class="code">system</span> directory for the virtual host.
  27. <br />
  28. <br />
  29. <img src="../images/sample404.png" title="" alt="Sample 404 Error" />
  30. <br />
  31. The famous 404 error happens when a file
  32. cannot be found on the server.
  33. <p><br />
  34. </p>
  35.       <p>To define a personalized error page file for a virtual host you can add a line 
  36.         like the following in the primary virtual host security file. Defining 
  37.         a different error file, the server will look in the <span class="code">web</span> 
  38.         directory instead of the <span class="code">system</span> one. If no personalized 
  39.         files are used the server will look for the file <span class="code">x.html</span> 
  40.         in the <span class="code">system</span> directory, where <span class="code">x</span> 
  41.         is the error number(for example: <span class="code">404.html</span>). 
  42.         A primary security file for a virtual host is the security file that is 
  43.         located in the main directory of the virtual host. If the error is not 
  44.         specified then the default in the system directory will be used, if this 
  45.         file doesn't exist too the error will be communicated trough the HTTP 
  46.         error message. <span  class="code"> <br />
  47.         <ERROR FILE="error404.html" ID="404" /> </span> </p>
  48.       <p><br />
  49.         <br />
  50.         For more information on the error pages consult the RFC2068 document found 
  51.         at  <a href="http://www.w3.org" target="_blank">www.w3c.org</a>. 
  52.       </p>
  53.     </td>
  54. </tr>
  55. </table>
  56. </body>
  57. </html>
  58.